package com.funcourse.demo.api.restful.io.response.busi;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.funcourse.demo.model.User;
import org.springframework.beans.BeanUtils;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserVO extends User {

  public UserVO(User user){
    super();
    BeanUtils.copyProperties(user,this);
    clearPrivateData();
  }

}
